package com.pinecone.service;

import com.pinecone.entity.CusPrincipalEntity;

import java.util.List;
import java.util.Map;

/**
 * 客户主体表
 * 
 * @author hushangjie
 * @email 979783618@qq.com
 * @date 2017-09-27 21:17:59
 */
public interface CusPrincipalService {
	
	CusPrincipalEntity queryObject(Integer cusId);
	
	List<CusPrincipalEntity> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(CusPrincipalEntity cusPrincipal);
	
	void update(CusPrincipalEntity cusPrincipal);
	
	void delete(Integer cusId);
	
	void deleteBatch(Integer[] cusIds);

    String login(String username, String password);

    void forbidHost(Integer customerId);

    void resetPwd(Integer customerId);

    CusPrincipalEntity queryByAccount(String username);
}
